﻿using gt.rediscachemanager.Entry;
using StackExchange.Redis;
using System.Threading.Tasks;

namespace gt.rediscachemanager.Core.Executor
{
    public interface IRedisExecutor
    {
        TResult ExecuteCommand<T, TResult>(RedisCommand command, RedisMessageWrapper<T, TResult> message, CommandFlags commandFlags);
        Task<TResult> ExecuteCommandAsync<T, TResult>(Entry.RedisCommand command, Entry.RedisMessageWrapper<T, TResult> message, CommandFlags commandFlags);
    }
}
